import React, { Component } from 'react';
import {
  StyleSheet,
  View,
  Text,
  Platform,
  Image,
  Dimensions,
  ConsoleModule,
  Modal,
  TextInput,
} from '@hippy/react';

const styles = StyleSheet.create({
  container: {
    backgroundColor: "#4377dd",
  },
  bgHeader: {
    height: 44,
    flexDirection: 'row',
    alignItems: 'center',
  },
});

export default class HomeTopFunc extends Component {
  constructor(props) {
    super(props);

  }

  _kefuDidTapped = () => {
    ConsoleModule.log('~~~~~~~~~~~~~~~~~ 点击了客服按钮 ~~~~~~~~~~~~~~~~~');
  };

  _msgDidTapped = () => {
    ConsoleModule.log('~~~~~~~~~~~~~~~~~ 点击了消息按钮 ~~~~~~~~~~~~~~~~~', Dimensions.get('screen').width, Dimensions.get('screen').height);
  };


  render() {
    return (
      <View style={[styles.container, { height: Dimensions.get('screen').statusBarHeight + 44}]}>
        <View
          style={{ height: Dimensions.get('screen').statusBarHeight }}
        />
        <Text>示例</Text>
      </View>
    );
  }
}
